import { Button } from 'antd';
import React from 'react'
import {useHistory} from "react-router-dom";

export default function Index() {
  const history = useHistory();

  function goUseState(){   
    history.push("/Admin/UseStateDemo");
  }

  return (
    <>
    <div>路由相关的hooks</div>
    <Button type='primary' onClick={goUseState}>去useState</Button>
    
    </>
  )
}

